package cn.tedu.medicalpath.medicine.pojo.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/*药品表*/
@Data
public class Medicine {
    @ApiModelProperty(value = "自增主键，唯一标识药品信息")
    private Long id;
    @ApiModelProperty(value = "药品名称，非空")
    private String name;
    @ApiModelProperty(value = "药品类别，非空")
    private String category;
    @ApiModelProperty(value = "药品规格，非空")
    private String specification;
    @ApiModelProperty(value = "药品剂型 Directions，非空")
    private String dosage;
    @ApiModelProperty(value = "生产厂家，非空")
    private String manufacturer;
    @ApiModelProperty(value = "批准文号，非空")
    private String approvalNum;
    @ApiModelProperty(value = "价格，以整数形式存储（单位为分） ")
    private Integer price;
    @ApiModelProperty(value = "医保编码，非空")
    private String insuranceCode;
    @ApiModelProperty(value = "功能主治，非空")
    private String indication;
    @ApiModelProperty(value = "不良反应，非空")
    private String adverseEffect;
    @ApiModelProperty(value = "图片URL，非空")
    private String imgUrl;
    @ApiModelProperty(value = "药品存储位置，非空")
    private String storageLocation;
    @ApiModelProperty(value = "存储条件，非空")
    private String storageCondition;
    @ApiModelProperty(value = "更新时间，非空")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;
    @ApiModelProperty(value = "库存数量，非空")
    private Integer amount;
}
